package kr.hkit.powerjava.algorithm;

public class QueueTest {
	public static void main(String[] args) {
		int size = 4;
		
		Structure que = new Queue(size);
		que.push("A");
		que.prn();
		que.push("B");
		que.prn();
		que.push("C");
		que.prn();
		que.push("D");
		que.prn();
		
		System.out.println();

		for ( int i = 0 ; i < size ; i++) {
			System.out.println("POP: " + que.pop());
			((Queue) que).prn2();
			
		}
	}
}
